/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package knazzy.logic;

import java.util.Random;
import knazzy.gui.Dice;

/**
 *
 * @author 76167
 */
public class DiceController {

    

    public void throwDice(Dice pDice){
        Random rand = new Random();
        int diceNumber = rand.nextInt(6);
        pDice.setDiceNumber(diceNumber+1);
        pDice.getLblPips().setText(String.valueOf(diceNumber+1));
    }

    
}
